package com.zhenmyan.secdeal.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * description:
 *
 * @author 颜真明
 * @date 2023/5/11  6:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_secdeal_goods")
public class SecDealGoods implements Serializable {

    /** 秒杀商品ID **/
    @ApiModelProperty("秒杀商品ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 商品ID **/
    @ApiModelProperty("商品ID")
    private Long goodsId;

    /** 秒杀家 **/
    @ApiModelProperty("秒杀家")
    private BigDecimal secdealPrice;

    /** 库存数量 **/
    @ApiModelProperty("库存数量")
    private Integer stockCount;

    /** 秒杀开始时间 **/
    @ApiModelProperty("秒杀开始时间")
    private Date startDate;

    /** 秒杀结束时间 **/
    @ApiModelProperty("秒杀结束时间")
    private Date endDate;

}
